<?php
class Page_Controller extends Template_Controller {

	public $template = 'client/index';
	
    public function __construct()
    {
        parent::__construct();
        
        //Css
        $this->template->css = $this->site['theme_url'].'page/page.css';
        //View
        $this->get_view();
    }
    
	public function __call($method, $arguments)
	{
		// Disable auto-rendering
		$this->auto_render = FALSE;
	}
	
    public function index()
    {	
    }
    
    public function detail($id)
    {
    	$this->template->content = new View('page/index');
    	$this->template->left = new View('client/left');
    	
    	$this->template->content->mr = ORM::factory('page')->find($id);
    }
}
?>